package com.zjtaixue.usersite.mapper;

import com.zjtaixue.usersite.domain.Teacher;
import com.zjtaixue.usersite.query.TeacherQueryObject;

import java.util.List;

public interface TeacherMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Teacher record);

    Teacher selectByPrimaryKey(Integer id);

    List<Teacher> selectAll();

    int  updateByPrimaryKey(Teacher record);

    int queryCount(TeacherQueryObject qo);

    List<Teacher> query(TeacherQueryObject qo);

    int countByNumber(String number);

    int countOthersByNumber(Teacher teacher);

}